package com.nefu.editor.service;

import com.nefu.editor.common.EdiException;
import com.nefu.editor.core.model.Order;
import com.nefu.editor.core.model.User;

import java.util.List;
import java.util.Map;

/**
 * @author chenchenT
 * @date : 18-11-14
 * @since : java 8
 */
public interface OrderService {

    /**
     * 获取订单列表
     *
     * @param user
     * @return
     */
    List<Map<String, Object>> getOrderByUserSystemId(User user) throws EdiException;

    /**
     * 获取写手的订单列表
     *
     * @param order
     * @return
     */
    List<Map<String, Object>> getOrderByWriterSystemId(Order order) throws EdiException;

    /**
     * 获取写手的订单列表
     *
     * @param order
     * @return
     */
    Map<String, Object> getOrderDetailByOrderSystemId(Order order) throws EdiException;

    /**
     * 获取写手的收入情况
     *
     * @param order
     * @return
     */
    Map<String, Object> getIncomeByWriterSystemId(Order order) throws EdiException;

}
